// import './assets/main.css'
import { Lazyload } from 'vant';

import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 1. 引入你需要的组件
import vant from 'vant';
import 'vant/lib/index.css';

import App from './App.vue'
import router from './router'
import 'amfe-flexible'
import '@/utils/rem.js'
const app = createApp(App)

app.use(Lazyload);

// 注册时可以配置额外的选项
app.use(Lazyload, {
    lazyComponent: true,
});

app.use(createPinia())
app.use(router)
app.use(vant);

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
app.use(pinia.use(piniaPluginPersistedstate))

app.mount('#app')